package cn.xfdzx.android.apps.shop.model;


import java.util.List;
import java.util.Map;

import cn.xfdzx.android.apps.shop.bean.AfterServiceUpLoadMoreImgBean;
import cn.xfdzx.android.apps.shop.bean.AfterServiceUpLoadSingImgBean;
import cn.xfdzx.android.apps.shop.bean.DissatisfiedReasonBean;
import cn.xfdzx.android.apps.shop.bean.MyRemakeListMarketBean;
import cn.xfdzx.android.apps.shop.bean.MyRemakeListRetailBean;
import cn.xfdzx.android.apps.shop.bean.PeiSongBeen;
import cn.xfdzx.android.apps.shop.bean.ShopRemakeListMarketBean;
import cn.xfdzx.android.apps.shop.bean.ShopRemakeListRetailBean;
import cn.xfdzx.android.apps.shop.contract.OrderRemakeContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;
import okhttp3.MultipartBody;

/**
 * @author zf
 * @date 2018/6/4.
 * Description：
 */
public class OrderRemakeModel implements OrderRemakeContract.Model {

    @Override
    public Flowable<AfterServiceUpLoadMoreImgBean> uploadMoreImg(List<MultipartBody.Part> files) {
        return RetrofitClient.getInstance().getApi().upLoadMoreImg(files);
    }

    @Override
    public Flowable<AfterServiceUpLoadSingImgBean> uploadSingImg(List<MultipartBody.Part> files) {
        return RetrofitClient.getInstance().getApi().upLoadSingImg(files);
    }

    @Override
    public Flowable<DissatisfiedReasonBean> getDissatisfied() {
        return RetrofitClient.getInstance().getApi().getDissatisfied();
    }

    @Override
    public Flowable<DissatisfiedReasonBean> getRemakeRetail(Map<String, Object> map) {
        return RetrofitClient.getInstance().getApi().getRemakeRetail(map);
    }

    @Override
    public Flowable<PeiSongBeen> getPeisongInfo(String order_id) {
        return RetrofitClient.getInstance().getApi().peisong(order_id);
    }

    @Override
    public Flowable<DissatisfiedReasonBean> getRemakeMarket(Map<String, Object> map) {
        return RetrofitClient.getInstance().getApi().getRemakeMarket(map);
    }

    @Override
    public Flowable<MyRemakeListRetailBean> getMyRemakeListRetail(String limit, int page) {
        return RetrofitClient.getInstance().getApi().getMyRemakeListRetail(page,limit);
    }

    @Override
    public Flowable<MyRemakeListMarketBean> getMyRemakeListMarket(String limit, int page) {
        return RetrofitClient.getInstance().getApi().getMyRemakeListMarket(page,limit);
    }

    @Override
    public Flowable<MyRemakeListMarketBean> getDeleteRemake(String replyId, int type) {
        return RetrofitClient.getInstance().getApi().getDeleteRemake(replyId,type);
    }

    @Override
    public Flowable<ShopRemakeListRetailBean> getShopRemakeRetail(Map<String, Object> map) {
        return RetrofitClient.getInstance().getApi().getShopRemakeRetail(map);
    }

    @Override
    public Flowable<ShopRemakeListMarketBean> getShopRemakeMarket(Map<String, Object> map) {
        return RetrofitClient.getInstance().getApi().getShopRemakeMarket(map);
    }
}
